package org.dromara.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.system.domain.XfNews;
import org.dromara.system.domain.XfReviewRating;
import org.dromara.system.domain.query.XfNewsQuery;
import org.dromara.system.domain.query.XfReviewRatingQuery;
import org.dromara.system.domain.vo.XfNewsVo;
import org.dromara.system.domain.vo.XfReviewRatingVo;

import java.util.List;

public interface XfReviewRatingMapper extends BaseMapperPlus<XfReviewRating, XfReviewRatingVo> {
//    根据reviewId评价id查询评价的各维度分数
    List<XfReviewRatingVo> queryListByReviewId(XfReviewRatingQuery query);

    Page<XfReviewRatingVo> selectPageXfReviewRatingList(@Param("page") Page<XfReviewRating> page, @Param(Constants.WRAPPER) Wrapper<XfReviewRating> queryWrapper);


}
